package com.baijiaxing.weixin.family.message.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 微信二维码类型
 *
 * @author June
 */
public enum FamilyActionNameEnum {
    qrScene("QR_SCENE", "临时二维码"),
    qrLimitScene("QR_LIMIT_SCENE", "永久二维码");

    private String key;
    private String value;

    private FamilyActionNameEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public static Map<String, String> getMap() {
        Map<String, String> map = new HashMap<String, String>();
        for (FamilyActionNameEnum actionNameEnum : FamilyActionNameEnum.values()) {
            map.put(actionNameEnum.getKey(), actionNameEnum.getValue());
        }
        return map;
    }

}
